import {FC} from 'react';
import {StyleSheet, Text, StyleProp, TextStyle} from 'react-native';

const UnitText: FC<{
  children?: string | number | JSX.Element;
  TStyle?: StyleProp<TextStyle>;
}> = ({children, TStyle}) => {
  return <Text style={TStyle || styles.TextColor}>{children}</Text>;
};
const styles = StyleSheet.create({
  TextColor: {
    color: '#000',
  },
});
export default UnitText;
